package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.MeetingAppointment;
import com.zhijian.medical.entity.vo.request.MeetingAppointmentSearchVo;
import com.zhijian.medical.entity.vo.request.MeetingAppointmentSingleVo;
import com.zhijian.medical.entity.vo.response.MeetingAppointmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MeetingAppointmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MeetingAppointment record);

    int insertSelective(MeetingAppointment record);

    MeetingAppointment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MeetingAppointment record);

    int updateByPrimaryKey(MeetingAppointment record);

    int count(MeetingAppointmentSearchVo meetingAppointmentSearchVo);

    List<MeetingAppointmentVo> selectList(MeetingAppointmentSearchVo meetingAppointmentSearchVo);

    MeetingAppointmentVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<MeetingAppointment> entities);

    /**
     * 单个格子的预约详情
     *
     * @param meetingAppointmentSingleVo
     * @return
     */
    MeetingAppointmentVo single(MeetingAppointmentSingleVo meetingAppointmentSingleVo);
}